#include <stdio.h>

#include <pthread.h>

void * do_thread_a(void * arg) {
    printf("thread a start\n");
}
void * do_thread_b(void * arg) {
    printf("thread b start\n");
    pthread_exit(NULL);
}
int main(int argc, char const *argv[])
{
    pthread_t thread1;
    int ret1 = pthread_create(&thread1, NULL, do_thread_a, NULL);

    pthread_t thread2;
    int ret2 = pthread_create(&thread2, NULL, do_thread_b, NULL);


    pthread_join(thread1, NULL);
    pthread_join(thread2, NULL);
    return 0;
}
